import java.io.*;
class ep10_4{
    public static void main(String args[]){
        String str=new String();
        try{
            BufferedReader in=new
                BufferedReader(new FileReader("ep10_4_a.txt"));
            BufferedWriter out=new
                BufferedWriter(new FileWriter("ep10_4_b.txt"));
            while((str=in.readLine())!=null){
                System.out.println(str);
                out.write(str);  //将读取到的 1 行数据写入输出流
                out.newLine();  //写入换行符
            }
            out.flush();
            in.close();
            out.close();
        }
        catch(IOException e){
            System.out.println("出现错误"+e);
        }
    }
}
